<?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_c3f004e7-f24c-4695-a826-4e12732671d2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_0f175ad2-a0b5-4001-bc99-afb2b16bc4fb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_192dbaef-16c8-487f-900a-68f64e6e5623">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_67029ee2-f1f9-4fd1-b330-16d8f7c3fc77">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_c0848e9c-3f35-48a2-afa5-5fbfe1dff52f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_5eded509-4639-4265-8ffc-d0267f4a9949">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_42475e71-3aaf-4dc5-b6cb-13598367d38f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_071e8b94-1088-47d3-979f-e994ebd7281b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_d49e243c-da66-4db6-85cb-0a5921358903">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_c0ad77ab-d0bc-4951-8493-deb20b15326b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c3f004e7-f24c-4695-a826-4e12732671d2"
      id="F_f1eb2098-9e40-4be3-9fbe-1865a6a3d145">&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;904,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_c3f004e7-f24c-4695-a826-4e12732671d2"
      decimals="0"
      id="F_e32382b1-a522-4f8b-85ec-3657aa68c629"
      unitRef="U_USD">904000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
