<?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_a3d591e1-8d72-4b78-bc76-f72c19a56308">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_da4e606c-4fc0-462c-be76-74f1f43619b9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_0dd58e51-d468-404c-8497-bdacabee8415">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_0790ae19-b66c-4f77-a7b5-8e172d92a62c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_2b57ee99-1fa8-4f4c-a1c2-fbef3ea937f4">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_40e643e1-2138-4cb4-9848-d6168e9c57e7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_9e171e9a-e0c1-4996-9088-34baa3d6c033">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_bcdecead-302c-4587-8d7c-6519d1895628">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_d871c633-7a34-4a91-a34a-8fce686bf586">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_1a76ff24-03d1-4771-98ab-6fa275b7cc68">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      id="F_bb523d32-f773-4749-9c02-7bca58825b8f">&lt;p style="font-size:10pt;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;4,716,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_a3d591e1-8d72-4b78-bc76-f72c19a56308"
      decimals="-3"
      id="F_90adcadc-0c08-46a8-beb3-a78717732b42"
      unitRef="U_USD">4716000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
