<?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_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_e890aef0-82e3-414e-829c-66814cd7fb27">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_a0e8d918-2f26-48ed-a9c2-a88ccae29b7d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_6cfe3554-af60-4e24-b99e-07437e47561f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_5eb48413-42e7-4a09-b61d-ae4e84571f8b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_6507283d-6920-4838-8002-a030fe98aa30">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_b3c9c932-19ca-4955-88bc-b84a4d328307">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_3cae5b97-ec5f-49ad-9e91-128cf53bf1ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_d38d71c9-01eb-4b6d-b67c-6cb14b73b5d3">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_537e33db-356b-443a-9875-9dad5b934ef5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      id="F_2d239c11-2cc7-49a3-b5f6-fc39860e5bcf">&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;54,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_3e7fc9a3-e0ff-49c4-acc5-0872146f4f20"
      decimals="0"
      id="F_93400076-8fa2-4be9-9e3d-5329ee6f4706"
      unitRef="U_USD">54000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
