<?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_278c2657-658e-49dc-abf3-4d4b59dfaf71">
        <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>
    <ffd:FormTp
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_a9c9120d-c805-4b0e-906b-c3cfd2239e74">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_68f5b136-446f-43ab-937b-1cfa756064b8">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_eca26f07-b9db-415e-8862-146f568ddcf9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_71fd50e6-8f0b-4a6f-b35a-b07deb2a5705">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_ce269a7e-c66d-488d-8103-fe6d7073715b">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_f6895389-dea1-4405-98d4-d681da0dbd39">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_c5915ca5-d76f-4b9e-8c57-a0bdd716f883">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_6341746e-6380-4d60-85ec-4afe1cb59466">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_05d5170b-1c19-4c4d-a9e0-44ba9c343aa1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      id="F_dcf07d3b-3deb-464d-8720-afd82037e5fa">&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;50,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_278c2657-658e-49dc-abf3-4d4b59dfaf71"
      decimals="0"
      id="F_aa02f871-b6c0-4ec9-b887-cefbdbfa3acc"
      unitRef="U_USD">50000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
