<?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_50c8ccde-a127-411c-b965-46ae8e195384">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-20</startDate>
            <endDate>2025-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_1267b571-8c22-4479-8dd4-bb6192fa1380">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_161c3f5a-5a4a-417d-9933-0b7514e1d419">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_c724036f-4dd8-464f-9cc2-d641088b0f1b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_d726dcd6-380a-40a4-aec9-f690793e11c8">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_bcc94f0e-3bcb-4147-8aef-fc77d59c0790">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_fcc572f6-3ae0-417e-8a70-4de5042cb80f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_9d696f7c-e530-44ce-aae4-4039f0c676ff">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_67523650-6686-45ab-847e-34d5cf83a345">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_d23efbff-8f77-47e3-a28e-d5d707d06e7c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_50c8ccde-a127-411c-b965-46ae8e195384"
      id="F_ef84e695-8321-4892-821f-6a7eb1b60a96">&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,636,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_50c8ccde-a127-411c-b965-46ae8e195384"
      decimals="0"
      id="F_d685d9a0-221f-41b2-a405-2bb39a87ce7b"
      unitRef="U_USD">1636000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
