<?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_6c0946d6-5250-4499-aba5-7c621d9bcd30">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_f05687fb-9af9-4130-acaf-6c9178b96122">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_5c05d8f9-7f95-4b39-bbf8-c67adb7f8e1e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_aada25a6-76ab-4e95-b64a-60e56bb4579c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_193aae07-7347-4f63-a19d-24da68fe46ba">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_1b536ac1-368f-41c6-af0d-32bddf7ce8aa">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_34d1b291-26fe-4db8-a6fa-5a1bf73fd1d0">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_945bee65-7ecd-4518-afc1-601674946f7c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_1e496be6-82cb-400c-9d36-e9957ac2d7c7">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_b1a793c0-ea8d-4ff7-b0b3-4a0025324cc7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      id="F_ad631df0-3394-4f51-8248-42a3260aecb0">&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,641,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_6c0946d6-5250-4499-aba5-7c621d9bcd30"
      decimals="-3"
      id="F_da95d4dd-3236-453c-8454-7dd9476fbdca"
      unitRef="U_USD">2641000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
