<?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_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_5ae5dbd4-8f6e-45da-af36-6751d636c12d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_d1bb52cf-616f-412a-ab2a-3c8e326af96a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_e2f92bf2-f979-45cb-aaee-ff0531a95251">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_790c51b1-27d9-48d5-aade-a0056c5739f5">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_3cb503ba-6509-4c4e-a4ab-43ec676e3710">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_4435e786-ef1c-4d4b-a607-ad3c22b9fadf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_669f55cd-428c-4055-b98b-6840e16317a2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_739ed42c-c27a-4d51-a22c-7cd15d2ec0d5">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_e81c400a-beea-455d-97f4-1b79a573fde9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      id="F_6e12231b-8b55-4c99-9825-368a769b0938">&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;220,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_abbdc9c0-70e3-4b18-8887-be2c16dd1f6c"
      decimals="-3"
      id="F_49e2ef81-91b3-4538-9782-3ebd86e6712a"
      unitRef="U_USD">220000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
