/*
Theme Name: 홀덤노트 (HoldemNote)
Description: Korean-language Stake poker affiliate theme. Converted from the original static build so the design is byte-for-byte the same.
Author: holdemnote.com
Version: 1.0
Text Domain: holdemnote
*/

body { margin: 0; background: #0B131B; font-family: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; -webkit-font-smoothing: antialiased; color: #E8EEF4; }
    * { box-sizing: border-box; }
    a { color: #35D07F; text-decoration: none; }
    a:hover { color: #5FE0A5; }
    .ph { background: #101A24 repeating-linear-gradient(135deg, rgba(53,208,127,.05) 0 1px, transparent 1px 10px); border: 1px solid #22313F; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
    .ph span { font-size: 11px; letter-spacing: .12em; color: #4E6272; font-weight: 600; }
  

@media (max-width: 1000px) {
  [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  [style*="grid-template-columns: repeat(5"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 18px !important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  [style*="grid-column: span"] { grid-column: 1 / -1 !important; }
  nav { display: none !important; }
  #m-toggle { display: inline-flex !important; }
}
@media (max-width: 700px) {
  /* Collapse every grid EXCEPT the direct children of a .scroll-x table wrapper,
     which keep their fixed columns and scroll sideways instead. Without the
     :not() the 2-3 column fixed templates (news rows, article layout) stayed
     wide and pushed the page 68px past the viewport. */
  :not(.scroll-x) > [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="padding: 84px 40px"], [style*="padding: 72px 40px"], [style*="padding: 76px 40px"],
  [style*="padding: 66px 40px"], [style*="padding: 62px 40px"], [style*="padding: 58px 40px"],
  [style*="padding: 54px 40px"], [style*="padding: 52px 40px"], [style*="padding: 46px 40px"],
  [style*="padding: 40px 40px"], [style*="padding: 34px 40px"], [style*="padding: 26px 40px"],
  [style*="padding: 22px 40px"], [style*="padding: 20px 40px"], [style*="padding: 18px 40px"]
    { padding-left: 20px !important; padding-right: 20px !important; }
  /* tall side-by-side banners become short blocks once the grid collapses */
  [style*="min-height: 380px"], [style*="min-height: 360px"], [style*="min-height: 260px"] { min-height: 190px !important; }
  h1 { font-size: 32px !important; line-height: 1.35 !important; }
  h2 { font-size: 23px !important; }
  [style*="padding: 48px 52px"], [style*="padding: 40px 44px"], [style*="padding: 38px 44px"],
  [style*="padding: 52px"], [style*="padding: 34px 40px"] { padding: 24px 20px !important; }
  [style*="display: flex"][style*="justify-content: space-between"] { flex-wrap: wrap !important; gap: 14px !important; }
}
/* inline display:flex outranks the UA [hidden] rule — without this the closed
   mobile overlay stays in the layer and swallows every click on the page */
#m-nav[hidden] { display: none !important; }

/* wide data tables scroll sideways rather than stacking into nonsense */
.scroll-x { overflow-x: auto !important; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.scroll-x > div { min-width: 700px; }

/* --- WordPress core classes the static build never needed --- */
.alignleft{float:left;margin:0 20px 16px 0}
.alignright{float:right;margin:0 0 16px 20px}
.aligncenter{display:block;margin:0 auto 16px}
.wp-caption{max-width:100%}
.wp-caption-text,figcaption{font-size:12.5px;line-height:1.65;color:#6E8291;margin-top:9px;font-weight:300}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.entry-content img{max-width:100%;height:auto;border-radius:6px}
.entry-content h2{font-size:21px;margin:34px 0 12px;font-weight:800;color:#FFF;letter-spacing:-.02em}
.entry-content h3{font-size:17px;margin:26px 0 10px;font-weight:800;color:#FFF}
.entry-content p{font-size:15.5px;line-height:2;color:#92A6B4;margin:0 0 20px;font-weight:300}
.entry-content ul,.entry-content ol{margin:0 0 24px;padding-left:20px}
.entry-content li{font-size:15.5px;line-height:1.95;color:#92A6B4;margin-bottom:10px;font-weight:300}
.entry-content a{color:#35D07F}
.entry-content blockquote{border-left:3px solid #F0B440;background:rgba(240,180,64,.06);padding:18px 22px;margin:0 0 28px}
.entry-content blockquote p{color:#E0BE86;font-size:14px;line-height:1.85;margin:0}
.entry-content table{width:100%;border-collapse:collapse;margin:0 0 28px;background:#101A24}
.entry-content th{text-align:left;padding:10px 14px;font-size:12.5px;color:#8FA3B2;font-weight:700;border-bottom:1px solid #22313F}
.entry-content td{padding:10px 14px;font-size:14px;color:#92A6B4;border-bottom:1px solid #18242E}
.pagination{display:flex;justify-content:center;gap:7px;margin-top:24px}
.pagination .page-numbers{border:1px solid #2C3E4E;color:#A9BCC9;min-width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:13.5px;font-weight:800;text-decoration:none}
.pagination .page-numbers.current{background:#35D07F;color:#06210F;border-color:#35D07F}
