<?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_741ab5de-62b7-44ce-ae1b-2dc0abb665d8">
        <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:RegnFileNb
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_c473eb2c-a3c7-40ad-bd57-11e1743dbec9">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_88dccc6a-b6e7-4934-8cc3-f8d5f9012bd3">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_e71bd367-d936-4eba-a2fe-69c7bb7b4fc1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_e254955b-f876-44a8-88f4-2f0b4b33566a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_40df60f1-f46c-4a38-937f-a6699e8fdbb0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_2021be4b-5019-4f61-a8bd-03cccda17125">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_649b5431-a414-4341-aedb-3d646f1fc831">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_ad626dc5-0c55-437b-a93f-f11b84f5167e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_63492426-d122-483e-b05e-6a95a8b37616">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      id="F_f7c64d70-6647-4262-8650-c4e145b713d7">&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;1,000,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_741ab5de-62b7-44ce-ae1b-2dc0abb665d8"
      decimals="-6"
      id="F_c217a3f4-cc8a-49e0-acb0-6743abf956f6"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
