<?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_f2a5b1ed-4b42-4771-bf14-6834d8909e91">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_0721f754-a954-44cb-84ed-3af11a23fb53">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_5801d3ae-c7a8-4b21-9026-72709c45449d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_ced86275-3356-4343-864d-0b42e4bc6142">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_1bdc568c-a83b-44f9-95a7-3f8373a63a7b">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_b755e439-96fa-4a90-8d6f-b4193fe14172">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_a8a8ca79-cee6-4b42-96c2-7f90de782ef8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_06b9ff3c-26a5-40b5-a07a-392b872c364d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_ba7fb36f-0975-44aa-b305-c97f22b4a443">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_ed984ee9-34c6-44ad-ad26-e939d1b642f9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      id="F_047ccfb3-cc6d-4c46-8b44-292f1443bb9c">&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,000,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_f2a5b1ed-4b42-4771-bf14-6834d8909e91"
      decimals="-6"
      id="F_928384c4-e1a5-45ef-8c6c-18c46c3cb001"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
