<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_b91bcc1f-f339-440b-a11e-50416dc666d7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_ef395520-f6a1-4a9a-b15a-75ed37c69e43">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_d099693f-f5c6-4209-a678-644461a52901">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_31270196-1e89-443e-b333-73760e31a069">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_e3aea11b-8361-413b-a14e-363b1e51a37e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_dcf3091f-cdec-4f49-a62d-9f6f12a38fd2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_69c46c71-ceb6-402a-aefa-7efa40d98a20">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_c81fa178-121a-42e2-8106-901ae1325e83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_83f26964-1214-4b23-a60d-f7f546e12b4f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      id="F_c38712e0-fbaa-427c-b3a6-cddb9d0270e5">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,253,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_954db929-18a5-41d0-a6cd-f89fcbb7ed3e"
      decimals="-3"
      id="F_92395552-d457-4a76-896e-b1b0b800fbbf"
      unitRef="U_USD">3253000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
