<?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_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_44ed037d-9782-4432-9969-722bfc7e4f16">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_94ace4f6-25df-4b51-a231-9243cfa1e68a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_a66543de-4974-40e0-904b-3e429589f3a1">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_3b347ae4-d374-43a4-b05b-f41c3bc80046">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_39bd2036-cff4-4d5e-ae1f-f939cc8b5bc4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_021dc8b4-7e07-4b5e-b421-d3a3670d74bb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_6a77c2b4-33a1-47a8-8787-2efafdef5127">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_83412f0a-be9d-4c6f-a9c7-295b4173e211">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_1b5591e9-0eaf-4623-bde0-a7c540e7fc96">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      id="F_8e9a735c-42fe-4299-a2b3-a974ae2a15c0">&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,192,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_d837b7ac-d7a5-42ab-aa2a-c9fa8f907045"
      decimals="-3"
      id="F_6b863d60-0d3d-4d21-a0dc-27ebde56f4f7"
      unitRef="U_USD">1192000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
