/* AMATEA LEVEL0 study guide: paper card style based on approved concept A. */
#pagebody.amatea-guide-paper { box-sizing:border-box; max-width:100%; min-width:0; padding:clamp(10px,2.2vw,25px); color:#172b42; background:linear-gradient(180deg,#10283e 0%,#0b2439 100%); }
#pagebody.amatea-guide-paper *,#pagebody.amatea-guide-paper *::before,#pagebody.amatea-guide-paper *::after { box-sizing:border-box; }
#pagebody.amatea-guide-paper .guide-paper { position:relative; isolation:isolate; max-width:980px; margin:0 auto; background:#ffffff!important; background-image:none!important; color:#182b3d; padding:clamp(34px,5vw,70px) clamp(27px,5vw,76px); border:1px solid #cab48a; border-radius:7px; box-shadow:0 7px 35px #0007; font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif; font-size:clamp(15px,1.12vw,17px); line-height:2; }
#pagebody.amatea-guide-paper .guide-paper::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; border:42px solid transparent; border-image-source:url("../img/amatea-paper-ornament.svg"); border-image-slice:220; border-image-width:55px; border-image-outset:0; border-image-repeat:stretch; opacity:.9; }
#pagebody.amatea-guide-paper .guide-paper-heading { text-align:left; border-bottom:0; padding:0 0 20px; margin:0 0 32px; }
#pagebody.amatea-guide-paper .guide-paper-route { font-size:12px; color:#6f665b; letter-spacing:.08em; margin:0 0 17px; font-family:"Yu Gothic","Noto Sans JP",sans-serif; }
#pagebody.amatea-guide-paper .guide-paper-route span{padding:0 8px;color:#a48f70}
body #pagebody.amatea-guide-paper .guide-paper h1 { border:0!important; background:none!important; box-shadow:none!important; padding:0!important; margin:0!important; font-size:clamp(27px,3vw,40px)!important; font-weight:600; line-height:1.55; color:#0e2440!important; letter-spacing:.03em; text-align:center!important; }
#pagebody.amatea-guide-paper .guide-paper-title-rule { height:1px; background:linear-gradient(90deg,#a58c60,#bdab8c 78%,transparent); margin-top:20px; position:relative; }
#pagebody.amatea-guide-paper .guide-paper-title-rule::after{content:none!important;display:none!important}
#pagebody.amatea-guide-paper .guide-paper-section { margin:0 0 32px; }
body #pagebody.amatea-guide-paper .guide-paper h2 { display:block!important; width:100%!important; max-width:none!important; margin:0 0 24px!important; padding:11px 16px!important; color:#262a2b!important; font-size:clamp(19px,1.7vw,23px)!important; font-weight:650; line-height:1.5!important; text-align:left; background:#ffffff!important; border:0!important; border-left:7px solid #a78850!important; border-radius:4px!important; box-shadow:none!important; }
#pagebody.amatea-guide-paper .guide-paper-text { font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif; color:#202b38; font-weight:400; overflow-wrap:anywhere; }
#pagebody.amatea-guide-paper .guide-paper-text p{color:#202b38!important; background:none!important; margin:0 0 1.25em!important; padding:0!important; font-size:inherit!important; line-height:2!important; }
#pagebody.amatea-guide-paper .guide-paper-text .imgboxr{float:right; width:min(44%,285px); max-width:100%; text-align:center; margin:4px 0 16px 22px; font-size:12px; line-height:1.55; color:#5d5d5d; border:1px solid #dad2c4; padding:8px; background:#ffffff; border-radius:5px; }
#pagebody.amatea-guide-paper .guide-paper-text .imgboxr img{max-width:100%;height:auto;display:block;margin:0 auto 6px;}
#pagebody.amatea-guide-paper .guide-paper-text::after{content:"";display:block;clear:both}
#pagebody.amatea-guide-paper .guide-paper-summary{ margin-top:30px; }
#pagebody.amatea-guide-paper .guide-paper-bottom{text-align:center;margin-top:35px;border-top:1px solid #d6c7ad;padding-top:18px}
#pagebody.amatea-guide-paper .guide-paper-bottom a{color:#193f61!important;text-decoration:underline;text-underline-offset:5px;font-family:"Yu Gothic","Noto Sans JP",sans-serif;font-size:15px}
@media(max-width:700px){#pagebody.amatea-guide-paper{padding:9px 5px} #pagebody.amatea-guide-paper .guide-paper{padding:42px 26px 40px;font-size:15px} #pagebody.amatea-guide-paper .guide-paper::before{border-image-width:48px;opacity:1;filter:contrast(1.28) brightness(.82)} #pagebody.amatea-guide-paper .guide-paper-text .imgboxr{float:none;width:auto;max-width:330px;margin:16px auto} body #pagebody.amatea-guide-paper .guide-paper h2{padding:10px 11px!important;font-size:18px!important;}}
@media(prefers-reduced-motion:reduce){#pagebody.amatea-guide-paper *{scroll-behavior:auto}}

/* Match the image credit disclosure pattern of IMN history04, in the approved paper palette. */
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details { margin:10px 0 2px; text-align:center; color:#28354a; font-family:"Yu Gothic","Noto Sans JP",sans-serif; }
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details summary { display:inline-flex; align-items:center; justify-content:center; gap:.35em; box-sizing:border-box; max-width:100%; min-height:38px; padding:8px 12px; color:#26374b; background:#ffffff; border:1px solid #b4a182; border-radius:6px; font-size:12px; font-weight:600; line-height:1.4; cursor:pointer; list-style:none; }
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details summary::-webkit-details-marker{display:none}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details summary::marker{content:""}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details summary::before{content:"ⓘ";font-size:1.1em;color:#6b5c44}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details summary::after{content:"⌄";font-size:1.35em;line-height:.65;margin-left:.3em}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details[open] summary::after{content:"⌃"}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details summary:hover{background:#ffffff;border-color:#92794e}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details summary:focus-visible{outline:2px solid #956d35;outline-offset:3px}
#pagebody.amatea-guide-paper .imgboxr .amatea-credit-open{display:none}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details[open] .amatea-credit-closed{display:none}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-details[open] .amatea-credit-open{display:inline}
#pagebody.amatea-guide-paper .imgboxr .amatea-image-credit-source{padding:9px 6px 3px;text-align:left;overflow-wrap:anywhere;font-size:12px;line-height:1.65;color:#62594d}

/* LEVEL0 STEP 001: nested classical study-note card, palette A (#EEE5D3). */
#pagebody.amatea-guide-paper .guide-paper .guide-study-notebook{
  margin:32px 0 12px;
  padding:clamp(19px,3.4vw,29px);
  background:#d8e1e5;
  color:#302b25;
  border:1px solid #c2a776;
  border-radius:9px;
  box-shadow:0 2px 10px rgba(79,59,29,.085),inset 0 1px 0 #ffffffa6;
}
#pagebody.amatea-guide-paper .guide-study-notebook-heading{
  display:flex;align-items:center;gap:11px;
  margin:0 0 16px;padding:0 0 12px;
  border-bottom:1px solid #c2a776;
}
#pagebody.amatea-guide-paper .guide-study-notebook-icon{
  flex:none;color:#80643b;font:26px/1 Georgia,serif;
}
body #pagebody.amatea-guide-paper .guide-paper .guide-study-notebook-heading h2{
  flex:1;min-width:0;width:auto!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:none!important;color:#332b21!important;
  font-size:clamp(19px,2vw,23px)!important;line-height:1.55!important;
  font-weight:600;text-align:left;
}
#pagebody.amatea-guide-paper .guide-study-notebook-body,
#pagebody.amatea-guide-paper .guide-study-notebook-body p{
  color:#302b25!important;
}
#pagebody.amatea-guide-paper .guide-study-notebook-body p{
  margin:0 0 17px!important;line-height:1.85!important;
}
#pagebody.amatea-guide-paper .guide-study-notebook-list{
  margin:0;padding:0;list-style:none;
  display:grid;gap:14px;
}
#pagebody.amatea-guide-paper .guide-study-notebook-list li{
  position:relative;margin:0;padding:0 0 0 29px;
  color:#302b25!important;font-size:inherit;line-height:1.85;
  overflow-wrap:anywhere;
}
#pagebody.amatea-guide-paper .guide-study-notebook-list li::before{
  content:"✓";position:absolute;left:1px;top:.03em;
  color:#80643b;font-family:"Yu Gothic","Noto Sans JP",sans-serif;font-weight:700;
}
@media(max-width:700px){
  #pagebody.amatea-guide-paper .guide-paper .guide-study-notebook{padding:19px 16px;margin-top:26px;}
  #pagebody.amatea-guide-paper .guide-study-notebook-list{gap:12px;}
  #pagebody.amatea-guide-paper .guide-study-notebook-list li{padding-left:23px;}
}

/* 2026-11-22 — shared formatting across all 47 LEVEL0 theoretical study guides. */
#pagebody.amatea-guide-paper .guide-paper-text img{max-width:100%;height:auto;vertical-align:middle}
#pagebody.amatea-guide-paper .guide-paper-text div[class*="imgbox"],
#pagebody.amatea-guide-paper .guide-paper-text .center{max-width:100%;margin:20px auto;text-align:center;clear:both}
#pagebody.amatea-guide-paper .guide-paper-text div[class*="imgbox"]:not(.imgboxr){border:1px solid #d8cdb9;border-radius:6px;background:#ffffff;padding:12px;}
#pagebody.amatea-guide-paper .guide-paper-text .tbl_02{max-width:100%;}
#pagebody.amatea-guide-paper .guide-paper-text div[class^="tbl"], #pagebody.amatea-guide-paper .guide-paper-text div[class*=" tbl"]{max-width:100%;}
#pagebody.amatea-guide-paper .guide-paper-text table{width:100%;max-width:100%;border-collapse:collapse;border-spacing:0;color:#243443;background:#ffffff;font-family:"Yu Gothic","Noto Sans JP",sans-serif;font-size:clamp(12px,1.2vw,15px);line-height:1.65}
#pagebody.amatea-guide-paper .guide-paper-text table th,#pagebody.amatea-guide-paper .guide-paper-text table td{border:1px solid #d8c9ac;padding:8px 10px;vertical-align:top;overflow-wrap:anywhere;background-color:transparent!important;color:#243443!important}
#pagebody.amatea-guide-paper .guide-paper-text table th{background:#ffffff!important;font-weight:700}
#pagebody.amatea-guide-paper .guide-paper-text div:has(>table){overflow-x:auto;max-width:100%;}
#pagebody.amatea-guide-paper .guide-paper-text p:has(>img){text-align:center}
#pagebody.amatea-guide-paper .guide-paper-text a{color:#22537b;text-decoration:underline;text-underline-offset:3px}
#pagebody.amatea-guide-paper .guide-paper-text .guide-original-bullet{display:inline;color:#80643b;font-weight:bold;margin-right:.3em}
#pagebody.amatea-guide-paper .guide-paper-intro{margin-bottom:34px}
@media(max-width:700px){#pagebody.amatea-guide-paper .guide-paper-text table{font-size:12px}#pagebody.amatea-guide-paper .guide-paper-text table th,#pagebody.amatea-guide-paper .guide-paper-text table td{padding:6px}#pagebody.amatea-guide-paper .guide-paper-text div[class*="imgbox"]{max-width:100%;}}

/* STEP001 only: selected blue-grey summary card, other guides unchanged. */
#pagebody.amatea-guide-paper .guide-paper .guide-study-notebook-bluegrey { background:#d8e1e5; }

/* LEVEL0 STEP025: Zodiac classification tables. */
#pagebody.amatea-guide-paper .guide-zodiac-table-wrap{width:100%;max-width:100%;overflow-x:auto;margin:18px 0 24px;-webkit-overflow-scrolling:touch}
#pagebody.amatea-guide-paper .guide-zodiac-table{width:100%;border-collapse:collapse;table-layout:fixed;font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;font-size:clamp(12px,1.35vw,15px);line-height:1.6;text-align:center;color:#203750}
#pagebody.amatea-guide-paper .guide-zodiac-table th{background:#294d69;color:#fff;border:1px solid #a3b8c6;padding:10px 4px;font-weight:600;white-space:nowrap}
#pagebody.amatea-guide-paper .guide-zodiac-table td{background:#f7fafc;color:#203750;border:1px solid #bdcbd6;padding:10px 4px;white-space:nowrap}
#pagebody.amatea-guide-paper .guide-zodiac-table tbody tr:nth-child(even) td{background:#eaf2f7}
@media(max-width:640px){#pagebody.amatea-guide-paper .guide-zodiac-table{font-size:12px}#pagebody.amatea-guide-paper .guide-zodiac-table th,#pagebody.amatea-guide-paper .guide-zodiac-table td{padding:9px 2px;letter-spacing:0}}


/* LEVEL0 legacy knowledge tables: Hebrew, tarot and bibliography. */
#pagebody.amatea-guide-paper .guide-paper-text .scrollable-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin:18px auto 24px}
/* Hebrew letter forms + writing-order illustrations (STEP029). */
#pagebody.amatea-guide-paper .guide-paper-text table.heb_tbl01{width:700px;max-width:none;table-layout:fixed;margin:0 auto}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 td.heb1{width:150px}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 td.heb2{width:550px}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 tr:has(> td.heb1) td{background:#e7eff5!important;color:#21455e!important;font-weight:700;text-align:center;vertical-align:middle}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 td:has(> img){text-align:center;vertical-align:middle}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 td[colspan="2"]{background:#f4f8fb!important}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 img{max-width:100%;height:auto}
/* Hebrew letter, meaning and numeric-value chart (STEP037). */
#pagebody.amatea-guide-paper .guide-paper-text table.heb_tbl02{width:100%;min-width:480px;table-layout:fixed}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl02 th{background:#294d69!important;color:white!important;text-align:center;vertical-align:middle}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl02 td{text-align:center;vertical-align:middle}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl02 tbody tr:nth-child(even) td{background:#f1f6fa!important}
#pagebody.amatea-guide-paper .guide-paper-text .heb_tbl02 img{max-height:80px;width:auto;max-width:100%;height:auto}
/* Tarot card descriptions (STEP042). */
#pagebody.amatea-guide-paper .guide-paper-text table.tar_tbl01{width:100%;table-layout:fixed;margin:0 0 20px}
#pagebody.amatea-guide-paper .guide-paper-text .tar_tbl01 .tar01{width:24%;text-align:center;font-weight:700;background:#e7eff5!important}
#pagebody.amatea-guide-paper .guide-paper-text .tar_tbl01 .tar02{font-weight:700;background:#e7eff5!important}
#pagebody.amatea-guide-paper .guide-paper-text .tar_tbl01 .tar03{background:#f7fafc!important;line-height:1.85}
#pagebody.amatea-guide-paper .guide-paper-text .tar_tbl01 .tar04{width:24%;text-align:center;font-weight:700;background:#f1f6fa!important}
#pagebody.amatea-guide-paper .guide-paper-text .tar_tbl01 .tar05{background:#fff!important}
/* Astrology reference bibliography (STEP046): preserve all five columns with horizontal scroll. */
#pagebody.amatea-guide-paper .guide-paper-text table.ast_tbl01{min-width:820px;table-layout:fixed;width:100%}
#pagebody.amatea-guide-paper .guide-paper-text .ast_tbl01 th{background:#294d69!important;color:white!important;text-align:left}
#pagebody.amatea-guide-paper .guide-paper-text .ast_tbl01 .ast01{width:16%}
#pagebody.amatea-guide-paper .guide-paper-text .ast_tbl01 .ast02{width:13%}
#pagebody.amatea-guide-paper .guide-paper-text .ast_tbl01 .ast03{width:13%}
#pagebody.amatea-guide-paper .guide-paper-text .ast_tbl01 .ast04{width:10%}
#pagebody.amatea-guide-paper .guide-paper-text .ast_tbl01 .ast05{width:48%}
#pagebody.amatea-guide-paper .guide-paper-text .ast_tbl01 tbody tr:nth-child(even) td{background:#f4f8fb!important}
@media(max-width:640px){
 #pagebody.amatea-guide-paper .guide-paper-text .tar_tbl01 .tar01,
 #pagebody.amatea-guide-paper .guide-paper-text .tar_tbl01 .tar04{width:26%}
 #pagebody.amatea-guide-paper .guide-paper-text .scrollable-table{scrollbar-width:thin}
}


/* 2026-11-25 — LEVEL0 legacy tables: specific table styles must win over
   the generic table th/td !important declarations without changing article content. */
#pagebody.amatea-guide-paper .guide-paper-text table.guide-zodiac-table th,
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_02 th,
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_03 th,
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_04 th,
#pagebody.amatea-guide-paper .guide-paper-text table.zodruler th,
#pagebody.amatea-guide-paper .guide-paper-text table.zodkey th,
#pagebody.amatea-guide-paper .guide-paper-text table .th_01 {
  background:#294d69!important;color:#fff!important;
  border-color:#a3b8c6!important;text-align:center;
  vertical-align:middle;font-weight:700;
}
#pagebody.amatea-guide-paper .guide-paper-text table.guide-zodiac-table td {text-align:center;vertical-align:middle;background:#f7fafc!important;color:#203750!important;}
#pagebody.amatea-guide-paper .guide-paper-text table.guide-zodiac-table tbody tr:nth-child(even) td {background:#eaf2f7!important;}
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_02,
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_03 {table-layout:fixed;min-width:340px;text-align:center;}
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_02 td,
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_03 td {text-align:center;vertical-align:middle;background:#f5f9fc!important;}
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_02 img,
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_03 img {max-width:100%;height:auto;}
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_04 {min-width:700px;table-layout:auto;}
#pagebody.amatea-guide-paper .guide-paper-text table.tbl_04 tbody tr:nth-child(even) td,
#pagebody.amatea-guide-paper .guide-paper-text table.zodruler tbody tr:nth-child(even) td,
#pagebody.amatea-guide-paper .guide-paper-text table.zodkey tbody tr:nth-child(even) td {background:#f1f6fa!important;}
#pagebody.amatea-guide-paper .guide-paper-text table.zodruler {min-width:340px;}
#pagebody.amatea-guide-paper .guide-paper-text table.zodkey {min-width:510px;}
/* A three-image illustration row must wrap inside the paper on narrow screens. */
#pagebody.amatea-guide-paper .guide-paper-text .center > img {max-width:100%;height:auto;}
@media(max-width:700px){
 #pagebody.amatea-guide-paper .guide-paper-text .center:has(>img + img) {display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:8px;}
 #pagebody.amatea-guide-paper .guide-paper-text .center:has(>img + img) > img {max-width:min(100%,220px);height:auto;}
 #pagebody.amatea-guide-paper .guide-paper-text .center:has(>img + img) > .font09 {flex-basis:100%;}
}

/* 2026-11-25 mobile-first readable tables for STEP024/027/029/037/046.
   Desktop retains original table structures; mobile stacks rows into labeled cards. */
#pagebody.amatea-guide-paper .guide-paper-credit{margin:22px 0 5px;color:#59616b;font-size:12px;line-height:1.75;overflow-wrap:anywhere;}
@media (max-width:700px){
 #pagebody.amatea-guide-paper .guide-paper-text .scrollable-table{max-width:100%;overflow:visible;margin:16px 0 22px;}
 #pagebody.amatea-guide-paper .guide-paper-text table.tbl_04,
 #pagebody.amatea-guide-paper .guide-paper-text table.zodruler,
 #pagebody.amatea-guide-paper .guide-paper-text table.zodkey,
 #pagebody.amatea-guide-paper .guide-paper-text table.zodimage,
 #pagebody.amatea-guide-paper .guide-paper-text table.heb_tbl02,
 #pagebody.amatea-guide-paper .guide-paper-text table.ast_tbl01{display:block;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important;border:0!important;background:transparent!important;}
 #pagebody.amatea-guide-paper .guide-paper-text table.tbl_04 thead,
 #pagebody.amatea-guide-paper .guide-paper-text table.tbl_04 tbody,
 #pagebody.amatea-guide-paper .guide-paper-text table.zodruler tbody,
 #pagebody.amatea-guide-paper .guide-paper-text table.zodkey tbody,
 #pagebody.amatea-guide-paper .guide-paper-text table.zodimage tbody,
 #pagebody.amatea-guide-paper .guide-paper-text table.heb_tbl02 tbody,
 #pagebody.amatea-guide-paper .guide-paper-text table.ast_tbl01 tbody{display:block;width:100%;}
 #pagebody.amatea-guide-paper .guide-paper-text table.tbl_04 thead,
 #pagebody.amatea-guide-paper .guide-paper-text :is(table.zodruler,table.zodkey,table.zodimage,table.heb_tbl02,table.ast_tbl01) tr:has(>th){display:none!important;}
 #pagebody.amatea-guide-paper .guide-paper-text :is(table.tbl_04,table.zodruler,table.zodkey,table.zodimage,table.heb_tbl02,table.ast_tbl01) tr:not(:has(>th)){display:block!important;width:100%!important;margin:0 0 13px!important;padding:4px!important;border:1px solid #b9cbd5!important;border-radius:8px;background:#f5f9fc!important;box-shadow:none!important;}
 #pagebody.amatea-guide-paper .guide-paper-text :is(table.tbl_04,table.zodruler,table.zodkey,table.zodimage,table.heb_tbl02,table.ast_tbl01) tr:not(:has(>th)) > td{display:grid!important;grid-template-columns:minmax(76px,32%) minmax(0,1fr);gap:7px;align-items:start;width:100%!important;max-width:100%!important;min-width:0!important;min-height:32px;padding:7px 8px!important;border:0!important;border-bottom:1px solid #d7e2e9!important;text-align:left!important;vertical-align:top!important;background:transparent!important;color:#203750!important;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:normal!important;}
 #pagebody.amatea-guide-paper .guide-paper-text :is(table.tbl_04,table.zodruler,table.zodkey,table.zodimage,table.heb_tbl02,table.ast_tbl01) tr:not(:has(>th)) > td:last-child{border-bottom:0!important;}
 #pagebody.amatea-guide-paper .guide-paper-text :is(table.tbl_04,table.zodruler,table.zodkey,table.zodimage,table.heb_tbl02,table.ast_tbl01) tr:not(:has(>th)) > td::before{content:attr(data-label);color:#365f77;font-size:11px;font-weight:700;line-height:1.6;overflow-wrap:anywhere;}
 #pagebody.amatea-guide-paper .guide-paper-text table.heb_tbl02 td img{max-width:85px;max-height:65px;object-fit:contain;}
 /* Writing-order illustrations: remain two columns, scale to available paper width. */
 #pagebody.amatea-guide-paper .guide-paper-text table.heb_tbl01{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;}
 #pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 td.heb1{width:30%!important;}
 #pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 td.heb2{width:70%!important;}
 #pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 td{padding:6px 4px!important;max-width:100%;overflow-wrap:anywhere;}
 #pagebody.amatea-guide-paper .guide-paper-text .heb_tbl01 img{display:block;max-width:100%!important;height:auto!important;margin:auto;object-fit:contain;}
}

/* Separate supplementary references from the assessed study points. */
#pagebody.amatea-guide-paper .guide-paper-references{margin:26px 0 8px;padding:18px 20px;background:#f5f8fa;border:1px solid #d3dde4;border-radius:7px;color:#33475a;}
body #pagebody.amatea-guide-paper .guide-paper .guide-paper-references-heading{margin:0 0 11px!important;padding:0 0 9px!important;background:transparent!important;border:0!important;border-bottom:1px solid #c9d6df!important;border-radius:0!important;font-size:clamp(17px,1.6vw,20px)!important;color:#284359!important;}
#pagebody.amatea-guide-paper .guide-paper-references .guide-paper-text{font-size:14px;line-height:1.85;}
#pagebody.amatea-guide-paper .guide-paper-references a{color:#235779;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
@media(max-width:700px){#pagebody.amatea-guide-paper .guide-paper-references{padding:14px 13px;margin-top:23px;}#pagebody.amatea-guide-paper .guide-paper-references .guide-paper-text{font-size:13px;}}

/* Narrow phones (320–380px): preserve readable paper width without changing the
   approved tablet / desktop design or the table-specific responsive layouts. */
@media (max-width:380px) {
  #pagebody.amatea-guide-paper .guide-paper {
    padding:34px 16px 34px;
  }
  #pagebody.amatea-guide-paper .guide-paper::before {
    border-image-width:30px;
  }
  body #pagebody.amatea-guide-paper .guide-paper h1 {
    font-size:clamp(23px,7.2vw,27px)!important;
    overflow-wrap:anywhere;
  }
  body #pagebody.amatea-guide-paper .guide-paper h2 {
    padding:9px 10px!important;
    overflow-wrap:anywhere;
  }
}

/* 2026-11-29: Align LEVEL0 guide body prose with IMN article typography.
   White guide cards, headings, figures, tables and study-point badges are unaffected. */
body.page-type-article #pagebody.amatea-guide-paper .guide-paper-text,
body.page-type-article #pagebody.amatea-guide-paper .guide-paper-text p,
body.page-type-article #pagebody.amatea-guide-paper .guide-paper-text li {
  font-family:"Yu Gothic","Noto Sans JP",Meiryo,"Hiragino Kaku Gothic ProN",sans-serif;
  font-size:15px;
  line-height:1.95;
  letter-spacing:.01em;
}
@media (max-width:760px) {
  body.page-type-article #pagebody.amatea-guide-paper .guide-paper-text,
  body.page-type-article #pagebody.amatea-guide-paper .guide-paper-text p,
  body.page-type-article #pagebody.amatea-guide-paper .guide-paper-text li {
    font-size:14.5px;
    line-height:1.9;
  }
}

/* 2026-11-29: narrative text stays left-aligned; image/caption .center blocks retain alignment. */
#pagebody.amatea-guide-paper .guide-paper-text > p:not(:has(> img)) { text-align:left; }
