<?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_80ee1e2f-4379-484f-aad3-4741a5cbb739">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_d58a7b00-0e98-4325-a491-07b6d4fd8938">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_53820be0-565b-4bfb-a8ad-4d0b77378067">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_c9d2a695-3b2c-403f-8c55-c785ea2f906e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_cce35505-8d5d-4c59-8925-2a8d29080fb1">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_a2f8063c-e4fd-4b4d-8a4d-a0ccfdf4785d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_7c406061-b1c9-4c77-b7b6-eb8c105e4071">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_4bae6e3d-ca51-431b-92df-d951d55bfedd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_fcdd89dd-2903-4f21-8380-36f512604180">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_8d6c87f1-71f4-4a79-9cd1-0ccc8ad32bb5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      id="F_17c9f98f-ee6e-4eae-8373-8c19b8365ff3">&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;2,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_80ee1e2f-4379-484f-aad3-4741a5cbb739"
      decimals="-3"
      id="F_1817554b-2202-4677-aa72-fd99faf166ae"
      unitRef="U_USD">2500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
