<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_9df33185-7c75-46c1-b0f5-75c67154cd7e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_41e1479d-91a3-457d-8b7c-18c7ae951b38">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_3342e941-0b2d-4c1b-8aae-0d4bcfc73003">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_e133f235-14a9-4f55-90ee-65cc4a9f7887">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_437c1734-a350-4445-8ab6-60ddf64cd137">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_40a9641e-ed20-479a-95be-21ee6b7f9b3a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_7b65d0d7-8ff4-43f9-b940-6da3ac633715">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_21c9faca-dd28-4d0a-b6d3-f4db278b1d39">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_dd5feb2b-0df0-4c80-9641-7d355b9c6a41">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      id="F_24842e25-80d8-47de-a109-66a44444aa91">&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,528,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_89a4ef2a-121a-42a7-ad2d-98745a7c8540"
      decimals="0"
      id="F_82bfae04-459c-409a-b916-124de06a383c"
      unitRef="U_USD">1528000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
