<?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_1f8f8ad2-f10f-4d0e-b439-92319266af1e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-03</startDate>
            <endDate>2025-10-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_ff7ea8fa-5122-4768-96fa-6af58c56ebca">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_1e460032-afa3-43a5-ae3b-188671c241d4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_23a3ae24-77b3-49ac-ba94-ab84851d2286">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_b3c9c166-a52a-4da0-88b7-f1ceb6814c44">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_cb1898cb-4fc7-40ad-bb09-34b635e8e152">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_e90e6a87-04ea-445f-8678-f54d8c383224">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_8892b0a1-15c3-4855-8b67-ef77f7ff3fcd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_e50a7822-8b4b-4985-b468-1f3576701a9d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_b78cba83-4b70-431e-a6a0-f2e212ba6db6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      id="F_d12a6ff0-ea10-45e8-86f7-9e3b22fd4b62">&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,310,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_1f8f8ad2-f10f-4d0e-b439-92319266af1e"
      decimals="0"
      id="F_ba003e7d-5933-48da-aeeb-18877f3cf729"
      unitRef="U_USD">3310000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
