<?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_9be30af1-a9f0-4cf8-8817-43bd82eb03dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_26751476-ec63-4f09-a9c3-c2500dbc42f7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_90cf3039-33bf-459e-8625-fe6b2223c2e6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_d539acb5-7ce9-4433-b7f9-fd596ff24efc">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_c21901df-738b-4e7f-a0ae-2df644702482">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_5a502fc3-cb6e-47eb-97e9-deb9334f807c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_5ade8cc0-49b0-4460-8c64-b7b04da10c3c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_0910ee80-f471-40a3-ba0c-1e8a7b67dbf7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_ea4f8185-91bd-4bf2-b998-dce181722cf4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_1029480b-ca08-43a6-b75a-b66861f222ba">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      id="F_3cc882dd-b605-46a7-a892-9ea78d4bb125">&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;5,110,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_9be30af1-a9f0-4cf8-8817-43bd82eb03dd"
      decimals="-3"
      id="F_bbe5c4f6-63be-4a1e-87ec-85e5e9aed35a"
      unitRef="U_USD">5110000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
