<?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_d29d8138-9222-45c7-a16d-432129c03f58">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_81f1d310-697a-4f6f-902a-592810135631">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_681f02c7-2897-4e2f-9623-927709c64614">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_a7d3d32c-8922-4e18-a3b7-d472dd566374">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_4de683c0-5581-43fd-8331-2036e81730a6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_1dc20789-d085-4ae4-a944-8ff2d638e373">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_aec11b3a-4526-4edf-a6f3-e2582c57ea63">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_eff9713b-4c61-4ed9-a9a0-0676d9f9d527">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_36f89aaa-e839-40ab-a4f4-4b808e419ba0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_dbfa0d05-4f71-49cf-bd5f-738f310d9a4d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d29d8138-9222-45c7-a16d-432129c03f58"
      id="F_ed9a5053-4057-4b93-a379-f4d282bb8458">&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;17,378,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_d29d8138-9222-45c7-a16d-432129c03f58"
      decimals="-3"
      id="F_943b5c61-8088-4bca-8c28-0d1d6df33741"
      unitRef="U_USD">17378000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
