<?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_122a82ad-834d-4635-8406-b47e27932d5f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-29</startDate>
            <endDate>2025-12-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_6e85c8d0-f950-488b-8b61-54a726f5a7cc">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_c1d211c4-5ff6-4b2b-86da-8d851478061e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_10b22c04-9dcc-486e-827a-d6bb64ba2f9e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_e7965aaa-5708-4efe-acd0-d00fc6dd391a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_5922848e-2cc1-4902-b641-043038dbc115">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_25212331-9e0c-4f0d-a61d-2ef4fd61de99">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_649905ec-6cef-4777-9ae6-34ee64c72e69">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_cc4b3f09-e515-407d-a07d-1c746bded0a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_98e2bc68-f573-4a7c-921b-62a5479f0973">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_122a82ad-834d-4635-8406-b47e27932d5f"
      id="F_e8aa9bca-561e-44da-8237-3e9742e370e8">&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;3,729,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_122a82ad-834d-4635-8406-b47e27932d5f"
      decimals="0"
      id="F_72e4f8d2-7776-4c12-a9de-e21256b49bef"
      unitRef="U_USD">3729000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
