<?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_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_3255abb7-04c9-4971-ae3c-b399744dfe61">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_0bb9fcec-f7dd-4f13-8888-b1f4e1d20105">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_462849ff-0446-4934-956d-ca39410cd379">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_07571f06-2bd9-4b70-946c-0a9f3450b50b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_3efa5d5a-61f0-44dc-8f32-ec2e9635535e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_81ad193f-fb76-442f-a002-b35dd99af554">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_1cdb19bc-5187-4a86-b3e3-783a47898f45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_8cbf30ec-2def-4011-ade7-2914a94ccca5">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_7d58048b-3890-4c0d-ad99-1807812ef5f6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      id="F_e334f99a-6b6c-44c4-8660-8434524dc0f4">&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;511,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_ddbc6c5c-6c74-4ccd-ba09-5f6e01d8c8d1"
      decimals="-3"
      id="F_ec5b001b-e6dc-4b11-9cf5-7abd925936fb"
      unitRef="U_USD">511000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
