<?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_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_8bf1eeb2-733c-45fb-afab-f11e78c24e65">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_241cf248-39c7-4585-8e88-700cdf760309">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_36150804-43c5-40f3-b6f5-e45d3d97e600">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_74ac789e-9fd6-4602-b9e5-22548d79f1b7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_efd11ccb-1abb-45b6-9b99-79b66f385649">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_35c7d808-4982-4da9-8f0c-d95b6dec71fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_e1865089-a8d7-4228-92b9-60e3e9c4b400">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_ccda5094-b8a4-4bb4-b7e2-9a5703baebd5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_4a370eb3-0855-4eea-8526-8aec30aaa10b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      id="F_30d24aad-e5ad-4866-97f0-0a708e8b80ec">&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;13,500,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_6de25d01-fb3a-4c1b-b0ed-75b5aa6eaa32"
      decimals="-3"
      id="F_b2d2c79a-a098-4782-8b42-50ee3510c482"
      unitRef="U_USD">13500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
